package com.linko.intelligent.sys.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.linko.intelligent.base.Node;
import com.linko.intelligent.sys.pojo.dto.OrganizeDto;
import com.linko.intelligent.sys.pojo.po.Organize;
import com.linko.intelligent.sys.pojo.query.OrganizeQuery;

import java.util.List;

/**
 * @Author yuan
 * @create 2024/3/15 11:42
 */
public interface OrganizeService extends IService<Organize> {

    public Long save(OrganizeDto dto);

    public Boolean delete(Long id);

    public Boolean update(Long id, OrganizeDto dto);

    public Organize getDetail(Long id);

    public List<Organize> queryList(OrganizeQuery query);

    public PageInfo<Organize> queryPage(OrganizeQuery query);

    public List<Node> getTreeById(Long id, boolean withUser);

}
